﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _008_009_方法的定义_调用与调试_2_
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Student student = new Student();
            Console.WriteLine(student.ID);
        }
    }

    //class Student
    //{
    //    //自定义构造器
    //    public Student()
    //    {
    //        this.ID = 200234;
    //        this.Name = "lili";
    //    }
    //    public int ID ;
    //    public string Name;
    //}

    class Student
    {
        public Student(int initID,string initName) { 
            this.ID = initID;
            this.Name = initName;
        }
        public Student()
        {
            this.ID = 14613;
            this.Name = "cheche";
        }
        public int ID;
        public string Name;
    }
}
